
#include "bullet.h"
#include "unit.h"
#include "frameanimation.h"

float Bullet::GRAVITY = 1000;

Bullet::Bullet(const EquipmentAttribute* attr) :
  bulletAttribute(attr)
, animation(nullptr)
, sprite(nullptr)
{
}

Bullet::~Bullet() {
    if(animation) {
		animation->removeFromParent();
    }

	if(sprite) {
		sprite->removeFromParent();
	}
}

void Bullet::init(){

}

bool Bullet::update(float ticks) {
	return false;
}
